package com.open.capacity.workflow3.dao;

import com.open.capacity.workflow3.entity.NwfTaskRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @email
 * @date 2023-11-02 21:21:15
 */
@Mapper
public interface NwfTaskRelationDao {

    int save(NwfTaskRelation nwfTaskRelation);

    int update(NwfTaskRelation nwfTaskRelation);

    int delete(String id);

    int deleteByTaskId(String taskId);

    int deleteByCondition(@Param("taskId") String taskId, @Param("result") Integer result, @Param("mark") Integer mark);

    NwfTaskRelation findById(String id);

    List<NwfTaskRelation> findByTaskId(String taskId);


    List<NwfTaskRelation> findAll(Map<String, Object> params);

}
